package com.hy.heath.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hy.heath.pojo.entity.HealthKnowledge;

import java.util.List;

public interface HealthKnowledgeService extends IService<HealthKnowledge> {
// This method returns a list of HealthKnowledge objects
    List<HealthKnowledge> getAllHealthKnowledge();
    List<HealthKnowledge> listByCategory(String category);
    List<HealthKnowledge> listByAuthor(String author);
    Page<HealthKnowledge> pageKnowledge(Page<HealthKnowledge> page, String category, String orderBy);
    void incrementViewCount(Integer knowledgeId);
}
